#ifndef _LED_H
#define _LED_H

#include "stm32f4xx.h"                  // Device header

#define LED_ON  (GPIOB->ODR &= ~(3 << 8))
#define LED_OFF (GPIOB->ODR |= 3 << 8)

#define LED3_ON  (GPIOB->ODR &= ~(1 << 9))
#define LED3_OFF (GPIOB->ODR |= 1 << 9)
#define LED4_ON  (GPIOB->ODR &= ~(1 << 8))
#define LED4_OFF (GPIOB->ODR |= 1 << 8)

#define LED3_OVERTURN (GPIOB->ODR ^= 1 << 9)
#define LED4_OVERTURN (GPIOB->ODR ^= 1 << 8)


void led_init(void);

#endif
